package chapter18;

import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author lzy
 * @create 2019-03-29 下午3:46
 */
public class Blip1 implements Externalizable {

    private int count;

    public Blip1() {
        System.out.println("blip1 constructor");
    }

    public Blip1(int count) {
        System.out.println("blip1 constructor with args");
        this.count = count;
    }

    @Override
    public void writeExternal(ObjectOutput out) throws IOException {
        System.out.println("Blip1.writeExternal");
    }

    @Override
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        System.out.println("Blip1.readExternal");
    }
}
